<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>注册</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <link rel="icon" th:href="@{/favicon.ico}">
    <link rel="shortcut icon" th:href="@{/favicon.ico}">
    <link type="text/css"  th:href="@{/css/index.css}" rel="stylesheet"  />
    <script th:src="@{/js/jQuery1.7.2.js}" type="text/javascript"></script>
    <script th:src="@{/js/index.js}" type="text/javascript"></script>
    <script th:src="@{/js/user.js}" type="text/javascript"></script>
</head>
<body>
    <div class="login_wall">
        <div class="login_logo">
            <img class="login_img" th:src="@{/images/logo.png}">
        </div>
        <div class="register_main">
            <div class="register_bg">
                <div class="register_dl fl">
                    <form th:action="@{/register}" onsubmit="return comfirmUsername();" method="post">
                        <span class="register_span"><img th:src="@{/images/login_j_03.png}">注册<a class="fr" th:href="@{/login}">登录</a></span>
                        <p class="mt5"><span class="msg">[[${msg}]]</span></p>
                        <p>
                            <em>用户名：</em>
                            <input type="text" name="userName" required="required" onblur="comfirmUsername()" placeholder="请输入用户名" autocomplete="off">
                            <span class="msg">[[${userName}]]</span>
                        </p>
                        <p>
                            <em>密　码：</em>
                            <input type="password" name="userPassword" required="required" minlength="6" placeholder="请输入登陆密码">
                            <span class="msg">[[${userPassword}]]</span>
                        </p>
                        <p>
                            <em>验证码：</em>
                            <input type="text" style="width: 145px;" required="required" name="captcha" placeholder="请输入验证码" autocomplete="off">
                            <img th:src="@{/captcha}" style="
                                   margin-left:5px"
                                 onclick="this.src=this.src+'?d='+Math.random();"
                                 title="点击刷新" alt="captcha">
                            <span class="msg fl">[[${captcha}]]</span>
                        </p>

                        <input type="submit" value="确定" />
                    </form>
                </div>

            </div>

        </div>

    </div>
</body>
</html>